package gui;

import java.util.ResourceBundle;

/**
 * This class contains a static method that allows other classes to access
 * Strings from the same resource bundle.
 * 
 * Resource bundle depending on LANGUAGE constant in this class.
 * 
 * @author jianweigan
 *
 */
public class ResourceStrings {

	/**
	 * Change this constant to access different language
	 */
	public static final String LANGUAGE = "English";

	private static final ResourceBundle myResources = ResourceBundle
			.getBundle("resources." + LANGUAGE);

	/**
	 * Returns the String whose value is associated with the key given to it in
	 * the resource bundle being used.
	 * @param key 
	 * @return value associated with key
	 */
	public static String getString(String key) {
		return myResources.getString(key);
	}

}
